namespace OasisCiq.Xnl
{
    using System;
    using System.Linq;

    /// <summary>
    /// A list of common types for subdivisions
    /// </summary>
    public class SubDivisionTypeList : XS.XSNormalizedString
    {
        private static readonly string[] PossibleValues = new[]
        {
            "Department",
            "Division",
            "Branch",
            "BusinessUnit",
            "School",
            "Section"
        };

        public SubDivisionTypeList(string value)
            : base(value)
        {
            if (!PossibleValues.Contains(value))
            {
                throw new ArgumentOutOfRangeException();
            }
        }
    }
}